#include "support_common.h" /* include peripheral declarations and more */
#include <stdio.h>
#include "uc_dipsw.h"

int uc_dipsw_get_state(int p_switch)
{
	return gpio_port_dd_get_pin_state(p_switch);
}
void uc_dipsw_init()
{
	// told not to use switch 1 so was not initialised
	        gpio_port_dd_init(5); // switch 2
	        gpio_port_dd_init(6); // switch 3
	        gpio_port_dd_init(7); // switch 4

}
